<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
<title>delegate scroll</title>
<style>
    .drag {
        width: 100px;
        height: 100px;
        position: absolute;
        border: 1px solid green;
        -ms-touch-action:none
        -ms-user-select:none;
    }

    .ks-dd-dragging {
        visibility: hidden;
    }

    .ks-dd-proxy {
        position: absolute;
        left:-9999px;
        top:-9999px;
    }
</style>
</head>
<body>
<div id="container">
    <div
            id="col1"
            class="col"
            style="float: left;
            margin: 20px;
border: 1px solid red;
width: 300px;height: 200px;left:50px;top:50px;overflow: auto;
">
        <div class='drag'>

        </div>
        <div style="height: 1000px;">

        </div>
    </div>


    <div
            id="col2"
            class="col"
            style="float: left;
             margin: 20px;
border: 1px solid red;
width: 300px;height: 200px;left:450px;top:50px;overflow: auto;
">

        <div class='drag'>

        </div>
        <div style="height: 1000px;">

        </div>
    </div>
</div>
<script src="/kissy/build/seed.js"></script>
<script src="/kissy/src/package.js"></script>
<script>
    KISSY.use("dd", function (S, DD) {
        var d = new DD.DraggableDelegate({
            container:"#container",
            selector:'.drag',
            move:1
        });

        new DD.Proxy().attach(d);

        d.plug(new DD.Scroll({
            node:"#col1"
        }));

        d.plug(new DD.Scroll({
            node:"#col2"
        }));

    });
</script>
</body>
</html>